type IFormType = 'input' | 'datePicker' | 'password' | 'select' | 'textarea'

/**
 * Layout布局属性
 */
export interface IColLayout {
  span?: number
  xl?: number
  lg?: number
  md?: number
  sm?: number
  xs?: number
}

/**
 * option类型定义
 */
export interface IOptionItem {
  title: string
  value: any
  id: string
}

export interface IFormItem {
  lable: string
  field: string
  rules?: any[]
  placeholder?: string
  type?: IFormType
  options?: IOptionItem[]
  otherOptions?: any
  isHidden?: boolean
  showPre?: boolean
  showSub?: boolean
}

export interface IForm {
  formStyle?: any
  formItems: IFormItem[]
  labelWidth?: string
  colLayout?: IColLayout //el-col列布局
  itemStyle?: any
  title?: string
}
